.flex {
    display: flex;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.flex-all {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-justify-center {
    display: flex;
    justify-content: center;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-items-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flex-content-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-all-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flex-gap-5 {
    gap: 5px;
}

.flex-gap-10 {
    gap: 10px;
}

.flex-gap-15 {
    gap: 15px;
}

/* 需要在标签处声明: style="--m-gap: 10px;" 自定义变量 */
.flex-gap-auto {
    gap: var(--m-gap);
}

.grid {
    display: grid;
}

.grid--column-gap-5 {
    column-gap: 5px;
}

.grid--column-gap-10 {
    column-gap: 10px;
}

.grid--column-gap-15 {
    column-gap: 15px;
}

.grid--row-gap-5 {
    row-gap: 5px;
}

.grid--row-gap-10 {
    row-gap: 10px;
}

.grid--row-gap-15 {
    row-gap: 15px;
}

.grid--gap-5 {
    column-gap: 5px;
    row-gap: 5px;
}

.grid--gap-10 {
    column-gap: 10px;
    row-gap: 10px;
}

.grid--gap-15 {
    column-gap: 15px;
    row-gap: 15px;
}


/**
*   ***********
*    常用类名样式
*   ***********
*/
.bg {
    background: var(--m-bg-color);
}

.bg-theme {
    background: var(--m-theme-color);
}

.text-color {
    color: var(--m-text-color);
}

.border {
    border: 1px solid var(--m-text-color);
}

.bg-light {
    background: var(--m-bg-color);
}

.bg-dark {
    background: var(--m-bg-color-dark);
}

.text-color-dark {
    color: var(--m-text-color-dark);
}

.text-color-gary {
    color: var(--m-text-gary);
}

.scrollbar {
    &::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.2);
    }

    &::-webkit-scrollbar-track {
        border-radius: 2px;
        background: rgba(0, 0, 0, 0);
    }

    &::-webkit-scrollbar-corner {
        background: transparent;
    }
}